package com.example.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {

    // ------- 人员模块错误码 -------
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(100, "注册信息为空");
    ErrorCode MAIL_FORMAT_ERROR = new ErrorCode(101,"邮箱格式错误");
    ErrorCode PHONE_NUMBER_FORMAT_ERROR = new ErrorCode(102,"手机号格式错误");
    ErrorCode USER_IDENTITY_ERROR = new ErrorCode(103,"用户身份错误");
    ErrorCode ADMIN_PASSWORD_IS_EMPTY =new ErrorCode(104,"管理员密码为空");
    ErrorCode PASSWORD_LENGTH_ERROR = new ErrorCode(105,"密码长度错误");
    ErrorCode MAIL_USED = new ErrorCode(106,"邮箱已被使用");
    ErrorCode PHONE_NUMBER_USED = new ErrorCode(107,"手机号已被使用");
    ErrorCode LOGIN_INFO_NOT_EXIST = new ErrorCode(108,"登录信息不存在");
    ErrorCode LOGIN_NOT_EXIST = new ErrorCode(109,"登录方式不存在");
    ErrorCode User_INFO_IS_EMPTY = new ErrorCode(110,"用户信息为空");
    ErrorCode LOGIN_IDENTITY_ERROR = new ErrorCode(111,"登录身份错误");
    ErrorCode LOGIN_PASSWORD_ERROR = new ErrorCode(112,"登录密码错误");
    ErrorCode LOGIN_VERIFICATION_CODE_ERROR = new ErrorCode(113,"登录验证码错误");



    // ------- 图片错误码 -------
    ErrorCode PIC_UPLOAD_ERROR =new ErrorCode(200,"图片上传错误");


    // ------- 活动模块错误码 -------
    ErrorCode CREATE_ACTIVITY_INFO_IS_EMPTY =new ErrorCode(300,"创建活动信息为空");
    ErrorCode USER_COUNT_IS_NOT_ENOUGH = new ErrorCode(301,"活动人员数量小于奖品数量");

    // ------- 奖品模块错误码 -------
    ErrorCode Prize_INFO_IS_EMPTY = new ErrorCode(400,"奖品信息为空");
    ErrorCode PRIZE_TIER_IS_INVALID = new ErrorCode(401,"奖品等级无效");



    // ------- 抽奖错误码 -------
    ErrorCode ACTIVITY_OR_PRIZE_NOT_EXIST =new ErrorCode(500,"活动或奖品不存在");
    ErrorCode PRIZE_FINISHED = new ErrorCode(501,"奖品已抽完");


    ErrorCode ACTIVITY_FINISHED =new ErrorCode(502,"活动已结束");
    ErrorCode PRIZE_WINNER_SIZE_ERROR = new ErrorCode(503,"中奖人数和奖品数量不一致");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(504,"活动状态转换错误");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY = new ErrorCode(505,"缓存活动id为空");
    ErrorCode CACHE_ACTIVITY_IS_NOT_EXIST = new ErrorCode(506,"缓存活动不存在");
}